package net.csdn.business.mirror.pop.service.thirdapi;

import net.csdn.business.mirror.pop.bo.UserBO;
import net.csdn.business.mirror.pop.dto.MyGithubDto;
import net.csdn.business.mirror.pop.vo.UserTokenVo;

public interface ThirdGitApi {
    /**
     *根据token获取授权用户的资料
     */
    UserBO getUser(String token);

    /**
     *列出授权用户的所有仓库
     */
    void listUserAllRepos(MyGithubDto myGithub,Integer page, Integer pageSize);

    /**
     *列出授权用户的所有组织
     */
    void listUserAllOrgs(MyGithubDto myGithub, Integer page, Integer pageSize);

    /**
     *授权获取code
     */
    String authorize() ;

    /**
     *根据code获取token
     */
    UserTokenVo getToken(String code);
}
